package com.bw.home.state

import com.bw.common.entity.CommendEntity
import com.bw.common.entity.SimpleVideoEntity
import com.bw.common.state.BaseUIState
import com.bw.home.entity.SimpleTypeEntity

open class HomeUiState:BaseUIState() {
    object LoadEmpty : HomeUiState()

    //获取分类数据的状态
    data class LoadSimpleTypeSuccess(val list: List<SimpleTypeEntity>) : HomeUiState()
    data class LoadSimpleTypeFail(val msg: String) : HomeUiState()

    //获取视频数据状态
    data class LoadSimpleVideoSuccess(val list: List<SimpleVideoEntity>) : HomeUiState()
    data class LoadSimpleVideoFail(val msg: String) : HomeUiState()

    //获取视频数据状态
    data class LoadVideoCommentSuccess(val list: List<CommendEntity>) : HomeUiState()
    data class LoadVideoCommentFail(val msg: String) : HomeUiState()

    //获取视频数据状态
    data class PublishVideoCommentSuccess(val list: List<CommendEntity>) : HomeUiState()
    data class PublishVideoCommentFail(val msg: String) : HomeUiState()
}